package com.usian.article.article.fegin;

import com.usian.model.article.ArticleInfoDto;
import com.usian.model.behavior.dto.ApUnlikesBehavior;
import com.usian.model.behavior.pojo.ApBehaviorEntry;
import com.usian.model.behavior.pojo.ApFollowBehavior;
import com.usian.model.behavior.pojo.ApLikesBehavior;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("leadnews-behavior")
public interface ArticleLoadFegin {

    @RequestMapping("/behavior/api/v1/findById")
    public ApBehaviorEntry getBehaviorByid(@RequestBody ArticleInfoDto dto);

    @RequestMapping("/behavior/api/Follow/findById")
    public ApFollowBehavior getFollowByid(@RequestBody ArticleInfoDto dto);

    @RequestMapping("/behavior/api/likes/findById")
    public ApLikesBehavior getLikesByid(@RequestBody ArticleInfoDto dto);

    @RequestMapping("/behavior/api/unlike/findById")
    public ApUnlikesBehavior getunlikeByid(@RequestBody ArticleInfoDto dto);
}
